<?php
/**
 * Created by PhpStorm.
 * User: czw
 * Date: 2018/7/11
 * Time: 14:59
 */
namespace app\common\model;


use app\lib\exception\BaseException;

class DrawRecord extends BaseModel
{
    public static function createOne($data){
        $res = self::create($data);
        if(!$res) throw new BaseException(['msg'=>'记录添加失败！']);
        return $res;
    }

}